import request from '@/utils/request'

// 查询信息发布列表
export function listInformationDelivery(query) {
  return request({
    url: '/activity/InformationDelivery/list',
    method: 'get',
    params: query
  })
}

// 查询商户列表
export function listPublisher() {
  return request({
    url: '/activity/InformationDelivery/publisherList',
    method: 'get'
  })
}

// 查询信息发布详细
export function getInformationDelivery(gpId) {
  return request({
    url: '/activity/InformationDelivery/' + gpId,
    method: 'get'
  })
}

// 新增信息发布
export function addInformationDelivery(data) {
  return request({
    url: '/activity/InformationDelivery',
    method: 'post',
    data: data
  })
}

// 修改信息发布
export function updateInformationDelivery(data) {
  return request({
    url: '/activity/InformationDelivery',
    method: 'put',
    data: data
  })
}

// 删除信息发布
export function delInformationDelivery(gpId) {
  return request({
    url: '/activity/InformationDelivery/' + gpId,
    method: 'delete'
  })
}
